package com.jsbs.iam;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.CrossOrigin;

@Slf4j
@CrossOrigin
@SpringBootApplication
@EnableCaching
@EnableDiscoveryClient
@EnableFeignClients
public class AuthApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(AuthApplication.class, args);
        } catch (Throwable e) {
            log.error("auth启动失败", e);
        }
    }
}
